package com.hanson.entity;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hanson.common.bean.GoodsRuleItemBean;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class GroupGoodsBean {
    private Integer id;

    private Integer goodsId;

    private String goodsName;

    private String goodsImage;

    private Integer goodsPrice;

    private Integer groupPrice;

    private Integer stock = 0;

    private Integer sales = 0;

    private Integer num;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private Integer groupNum;

    private Integer status;

    private Integer isShow;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    private Integer joinNum;

    private Integer viewNum;

    private Integer groupedNum;

    private String webGoodsPrice;
    private String webGroupPrice;
    private Integer totalNum;
    private String goodsAttr;

    private GoodsAttrValueBean attr;
    private List<JSONObject> attrs;
    private List<GoodsRuleItemBean> items;
    private Integer specType;
}